﻿<!DOCTYPE html>
<html lang="zh-cn">
<head>
<meta charset="utf-8" />
<title>ES6模块化</title>
<style>
@import url("Style/css.css");
</style>
<script type="module" src="Javascript/es6.js"></script>
<script type="module">
    import * as index from './Javascript/string.js';
    import('./Javascript/string.js').then(function(module){
        document.getElementById('t').innerHTML+=',异步加载：min(1,2)=' +index.min(1,2);
    }).catch(ex=>{
        alert(ex);
    });
    document.getElementById('t').innerHTML+=',min(1,2)=' +index.min(1,2);
</script>
</head>
<body>
   <div class="test">@import test</div>
   
   <div id="t" class="test"></div>
</body>
</html>
	